TRIM$

Syntax: TRIM$ (string$)
Location: TRIM

The function strips off all preceding and appended spaces from a string and returns the result of this.

Example:
TRIM$("  Hello World")="Hello World"
TRIM$("second try  ")="second try"
TRIM$("     ")=""

CROSS-REFERENCE:
LEN returns the length of a string.
